let promise = new Promise((resolve,reject) => {
    setTimeout(() => {
        // resolve("ok")
        reject("err")
    },500)
})

promise.then(res=> {
    console.log("成功：",res);
}).catch(err => {
    console.log("失败：",err);
}).finally(() => {
    console.log("最终结束");
})